package com.r2coding.storage.engine.core.context;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.InputStream;
import java.io.Serializable;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2023/10/16 12:50
 **/
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Accessors(chain = true)
@Data
public class StoreFileContext implements Serializable {

    private static final long serialVersionUID = -1445350261563064953L;

    /**
     * 文件名称
     */
    private String filename;

    /**
     * 文件总大小
     */
    private Long totalSize;

    /**
     * 文件输入流信息
     */
    private InputStream inputStream;

    /**
     * 文件上传后的物理路径
     */
    private String realPath;
}
